cmake_minimum_required(VERSION 3.17)
project(muduo)

set(CMAKE_CXX_STANDARD 20)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)

conan_basic_setup()

add_executable(muduo main.cpp counter.cpp counter.h observer.cpp observer.h reveal.cpp reveal.h)

target_link_libraries(muduo ${CONAN_LIBS})

if(UNIX OR Linux)
    target_link_libraries(muduo pthread)
endif()

#conan install .. --profile=mingw64 --build=boost --build=bzip2 --build=libiconv --build=zlib